package com.cn.goodsadmin.service;

import com.cn.goodsadmin.po.Task;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("waterService")
public class WaterService extends BaseService{

    public void  saveTask(Task task) throws Exception{
        taskDao.save(task);
    }

    public void  deleteTask(Task task)throws Exception{
        taskDao.delete(task);
    }

    public void updateTask(Task task)throws Exception{
        taskDao.update(task);
    }

    public List<Task> findAllTask(int appid)throws Exception{
        return taskDao.findAllTask(appid);
    }
}
